//
//  ViewController.m
//  MLXIdCardRecognition
//
//  Created by SY on 2019/1/23.
//  Copyright © 2019 shenyue. All rights reserved.
//

#import "ViewController.h"
#import "MLXIdCardCaptureViewController.h"
//#import <MLXBankSacnViewController.h>
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//    NSBundle *bundle = [NSBundle bundleForClass:self.class];
//    NSString *path = [[bundle resourcePath] stringByAppendingPathComponent:@"idCard.bundle"];
    MLXIdCardCaptureViewController *vc = [[MLXIdCardCaptureViewController alloc] init];
//    vc.zocrLibresourcePath = path;
    [vc setIdentifyCompletionBlock:^(MLXIdCardInfoModel *infoModel,UIImage *idImage) {
        NSLog(@"%@",infoModel.description);
        [self.navigationController popViewControllerAnimated:YES];
    }];
    [self.navigationController pushViewController:vc animated:YES];
}


@end
